//
//  SettingButton.m
//  YunGui
//
//  Created by Hanen 3G 01 on 15/11/16.
//  Copyright © 2015年 hanen. All rights reserved.
//

#import "SettingButton.h"
#import "UIView+Extension.h"

@implementation SettingButton

- (id)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
      
//        self.imageView.backgroundColor = BlueColor;

//        self.layer.borderColor = [UIColor lightGrayColor].CGColor;
//        self.layer.borderWidth = 1.0f;
//        UIView *view = [[UIView alloc] initWithFrame:CGRectMake(self.titleLabel.maxX , 0, 1, self.height)];
//        view.backgroundColor = [UIColor lightGrayColor];
//        [self addSubview:view];
//        self.imageView.layer.borderColor = [UIColor colorWithWhite:0.8 alpha:0.8].CGColor;
//        self.imageView.layer.borderWidth = 1;
    }
    return self;
}
#pragma mark - 设置按钮内部图片和文字的frame
- (CGRect)imageRectForContentRect:(CGRect)contentRect
{
    CGFloat W = 20 ;
//    CGFloat H = contentRect.size.height;
     return CGRectMake(0 , 2, W, W);
    
}
//
- (CGRect)titleRectForContentRect:(CGRect)contentRect
{
    CGFloat W1 = contentRect.size.width;
    CGFloat H = contentRect.size.height;
    return CGRectMake( 25, 0, W1, H);
    
}
@end
